package com.nation.service;

import com.nation.domain.TNationInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/3.
 */
public interface BaseService<E> {
    //查询所有信息
    public List<E> findAll();
    //根据主键查找
    public E findByCountryCode(String country_code);
    //修改信息
    public Boolean update(E e);

    public List<E> findByLimit(Map<String,Object> map);

    public Boolean insert(E e);

    public List<E> findByCondition(Map<String,Object> map);

    public Boolean delete(String pk);
}
